<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<LINK rel="Bookmark" href="/favicon.ico" >
	<LINK rel="Shortcut Icon" href="/favicon.ico" />
	
	<title>项目管理系统</title>
	
	<link rel="stylesheet" type="text/css" href="/static/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="/static/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="/static/themes/demo.css">
	
	<link rel="stylesheet" type="text/css" href="/static/css/default.css">
	
	<script type="text/javascript" src="/static/themes/jquery.min.js"></script>
	<script type="text/javascript" src="/static/themes/jquery.easyui.min.js"></script>	
	<script type="text/javascript" src="/static/index.js"></script>
	
	<script type="text/javascript">	
	 var _menus = {
		"menus":[{"menuid":"1","icon":"icon-sys","menuname":"员工管理","menus":[
			{"menuid":"12","menuname":"员工信息","icon":"icon-page","url":"employeeIndex"},
			{"menuid":"13","menuname":"批量导入","icon":"icon-class","url":"excelIndex"},
			]},
			{"menuid":"8","icon":"icon-sys","menuname":"项目设计","menus":[
				{"menuid":"21","menuname":"项目分析","icon":"icon-nav","url":"menu2/tree2.html"},
				{"menuid":"22","menuname":"菜单","icon":"icon-nav","url":"demo1.html"}
			]},
			{"menuid":"56","icon":"icon-sys","menuname":"菜单","menus":[
				{"menuid":"31","menuname":"菜单","icon":"icon-nav","url":"demo1.html"},
				{"menuid":"32","menuname":"菜单","icon":"icon-nav","url":"demo2.html"}
			]},
			{"menuid":"28","icon":"icon-sys","menuname":"菜单","menus":[
				{"menuid":"41","menuname":"菜单","icon":"icon-nav","url":"demo.html"},
				{"menuid":"42","menuname":"菜单","icon":"icon-nav","url":"demo1.html"},
				{"menuid":"43","menuname":"菜单","icon":"icon-nav","url":"demo2.html"}
			]},
			{"menuid":"39","icon":"icon-sys","menuname":"菜单","menus":[
				{"menuid":"51","menuname":"菜单","icon":"icon-nav","url":"demo.html"},
				{"menuid":"52","menuname":"菜单","icon":"icon-nav","url":"demo1.html"},
				{"menuid":"53","menuname":"菜单","icon":"icon-nav","url":"demo2.html"}
			]}
		]};
	//设置登录窗口
	function openPwd() {
		$('#w').window({
			title: '修改密码',
			width: 300,
			modal: true,
			shadow: true,
			closed: true,
			height: 160,
			resizable:false
		});
	}
	//关闭登录窗口
	function closePwd() {
		$('#w').window('close');
	}

	//修改密码
	function serverLogin() {
		var $newpass = $('#txtNewPass');
		var $rePass = $('#txtRePass');

		if ($newpass.val() == '') {
			msgShow('系统提示', '请输入密码！', 'warning');
			return false;
		}
		if ($rePass.val() == '') {
			msgShow('系统提示', '请在一次输入密码！', 'warning');
			return false;
		}

		if ($newpass.val() != $rePass.val()) {
			msgShow('系统提示', '两次密码不一至！请重新输入', 'warning');
			return false;
		}

		$.post('/ajax/editpassword.ashx?newpass=' + $newpass.val(), function(msg) {
			msgShow('系统提示', '恭喜，密码修改成功！<br>您的新密码为：' + msg, 'info');
			$newpass.val('');
			$rePass.val('');
			close();
		})
		
	}

	$(function() {

            openPwd();

            $('#editpass').click(function() {
                $('#w').window('open');
            });

            $('#btnEp').click(function() {
                serverLogin();
            })

			$('#btnCancel').click(function(){closePwd();})

            $('#loginOut').click(function() {
                $.messager.confirm('系统提示', '您确定要退出本次登录吗?', function(r) {

                    if (r) {
                        location.href = '/ajax/loginout.ashx';
                    }
                });
            })
        });
		
	</script>
</head>
<body class="easyui-layout">
	<noscript>
		<div class="noscript"> <img src="/static/images/noscript.gif" alt='抱歉，请开启脚本支持！' /></div>
    </noscript>
	
	<!-- 顶部导航 easyui-accordion -->
	<div data-options="region:'north',border:false" class="north">
		<span style="float:right; padding-right:20px;" class="head">欢迎 管理员 <a href="#" id="editpass">修改密码</a> <a href="#" id="loginOut">安全退出</a></span> 
		<span style="padding-left:10px; font-size: 16px; "><img src="/static/images/blocks.gif" width="20" height="20" align="absmiddle" />项目管理系统</span> 
	</div>	
	
	
	<!-- 左侧菜单easyui-accordion -->
	<div data-options="region:'west',split:true,title:'功能菜单'" style="width:150px;padding:0px;">		
		<div  id="menuNav" class="easyui-accordion" fit="true" border="false">		
		</div>
	</div>	
	
	<!-- 中间工作区 easyui-tabs -->
<!-- 	<div data-options="region:'center',title:'操作区',iconCls:'icon-ok'">		
		<div  id="mainTabs" class="easyui-tabs" data-options="fit:true,border:false,plain:true">
			<div title="我的桌面" data-options="href:'_content.html'" style="padding:10px"></div>
		</div> 
	</div>	 -->
	
	<div id="mainPanle" region="center" style="background: #eee; overflow-y:hidden">
		<div id="mainTabs" class="easyui-tabs"  fit="true" border="false" >
			<div title="欢迎使用" iconCls="icon-ok" style="padding:20px;overflow:hidden;color:red; " >
				<h1 style="font-size:24px;">欢迎使用项目管理系统</h1>
			</div>
		</div>
    </div>
	
	<div data-options="region:'south',border:false" style="height:30px;background:#D2E0F2">
		<div class="footer">版权所有，翻版必究</div>
	</div>
</body>
</html>